@import "../../views/Lw-base";
.page-fixed {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #fff;
    border-radius: 8px;
    width: 60px;
    height: 4 * 72px;
    user-select: none;
    z-index: 5;
    font-size: 14px;
    img {
        user-select: none !important;
    }
    .item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 16px 0;
        cursor: pointer;
        position: relative;
        &:hover {
            .name {
                color: $primary-color;
            }
            .content-box {
                display: flex !important;
            }
            &:nth-child(1) {
                .icon {
                    background: url("@/assets/Lw/mini-icon-active.png")
                        no-repeat center/cover;
                }
            }
            &:nth-child(2) {
                .icon {
                    background: url("@/assets/Lw/client-icon-active.png")
                        no-repeat center/cover;
                }
            }
            &:nth-child(3) {
                .icon {
                    background: url("@/assets/Lw/phone-icon-active.png")
                        no-repeat center/cover;
                }
            }
            &:nth-child(4) {
                .icon {
                    background: url("@/assets/Lw/help-icon-active.png")
                        no-repeat center/cover;
                }
            }
        }
        img {
            display: block;
            width: 20px;
        }
        .name {
            margin-top: 4px;
            font-size: 12px;
            color: #3a414d;
        }
        .content-box {
            padding-right: 8px;
            display: none !important;
            position: absolute;
            top: 0;
        }
        .icon {
            width: 20px;
            height: 20px;
        }

        &:nth-child(1) {
            .icon {
                background: url("@/assets/Lw/mini-icon.png") no-repeat
                    center/cover;
            }
            .content-box {
                left: -180px;
            }
            .content {
                width: 172px;
                padding: 12px;
                box-sizing: border-box;
                background: #ff0;
                border-radius: 8px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                color: #1f2329;
                font-weight: 700;
            }
        }
        &:nth-child(2) {
            .icon {
                background: url("@/assets/Lw/client-icon.png") no-repeat
                    center/cover;
            }
            .content-box {
                left: -151px;
            }
            .content {
                width: 143px;
                padding: 12px;
                box-sizing: border-box;
                background: #fff;
                border-radius: 8px;
                display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                color: #1f2329;
                font-weight: 700;
                .img-box {
                    width: 119px;
                    padding: 36px 28px;
                    background: #f6f9ff;
                    margin-bottom: 8px;
                    box-sizing: border-box;
                }
                .download {
                    display: block;
                    width: 63px;
                }
                .desc {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 1px solid rgba(45, 81, 160, 0.6);
                    background: #f6f9ff;
                    width: 119px;
                    height: 32px;
                    border-radius: 4px;
                    font-size: 14px;
                    font-weight: 500;
                    color: $primary-color;
                }
            }
        }
        &:nth-child(3) {
            .icon {
                background: url("@/assets/Lw/phone-icon.png") no-repeat
                    center/cover;
            }
            .content-box {
                left: -143px;
                .content {
                    background: #fff;
                    border-radius: 8px;
                    width: 135px;
                    padding: 12px;
                    box-sizing: border-box;

                    .img-box {
                        display: flex;
                        align-items: center;
                        color: #6f7885;
                        margin-bottom: 8px;
                        img {
                            display: block;
                            width: 20px;
                            margin-right: 4px;
                        }
                    }
                    .desc {
                        color: #1f2329;
                        font-weight: 700;
                    }
                }
            }
        }
        &:nth-child(4) {
            .icon {
                background: url("@/assets/Lw/help-icon.png") no-repeat
                    center/cover;
            }
        }
    }
}
.help-container {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px - 24px - 24px);
    .search-box {
        margin-bottom: 24px;
        :deep(input) {
            height: 40px;
            padding: 0 20px;
            font-size: 16px;
            box-shadow: none;
            border: none;
            background: #f7f8fa;
            border-radius: 4px 0 0 4px;
        }

        :deep(.ant-input-search-button) {
            height: 40px;
            font-size: 16px;
            border-radius: 0px 4px 4px 0px !important;
        }
    }
    .sub-title {
        color: #1f2329;
        font-weight: 700;
        margin-bottom: 23px;
    }
    .title {
        color: #1f2329;
        font-weight: 700;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .desc {
        color: #6f7885;
        font-size: 14px;
        margin-top: 4px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .list {
        flex: 1;
        overflow: auto;
        padding-bottom: 20px;
        .document-item {
            height: 85px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-left: 28px;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
            &::before {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                width: 8px;
                background: $primary-color;
                top: 0;
                left: 0;
                display: none;
            }
            &:hover {
                background: #f6f9ff;
                &::before {
                    display: block;
                }
            }
            .left {
                flex: 1;
                margin-right: 30px;
            }
            .right {
                display: flex;
                align-items: center;
                color: $primary-color;
                font-size: 14px;
                cursor: pointer;
                .arrow {
                    display: block;
                    margin-left: 4px;
                    width: 20px;
                }
            }
        }
    }
}
.hele-detail {
    position: absolute;
    top: 72px;
    bottom: 0;
    left: 0;
    right: 0;
    // padding: 24px;
    background: #fff;
    transform: translateX(100%);
    transition: all 0.3s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 1;

    .hele-detail-box {
        padding: 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    &.active {
        transform: translateX(0);
    }
    .top-box {
        display: flex;
        align-items: center;
        margin-bottom: 24px;
        .back {
            display: block;
            width: 28px;
            margin-right: 20px;
            cursor: pointer;
        }
    }
    .content-box {
        flex: 1;
        overflow: auto;
        background: #f7f8fa;
        border-radius: 8px;
        overflow: auto;
        padding: 20px;
        margin-bottom: 20px;

        :deep(img) {
            max-width: 100%;
        }
    }
    .footer {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        border-top: 1px solid rgba(5, 5, 5, 0.06);
        flex-shrink: 0;
        padding: 8px 16px;
        box-sizing: border-box;
        button {
            height: 40px;
            padding: 0 24px;
            font-weight: 700;
        }
    }
}
:deep(.document-modal) {
    padding-bottom: 0;
    height: 746px;
    .ant-modal-footer {
        height: 44px;
        padding: 0 32px !important;
        background: #f7f8fa;
        line-height: 44px;
        .footer {
            display: flex;
            align-items: center;
            img {
                display: block;
                width: 20px;
                margin-right: 8px;
            }
        }
    }
}
